import httpUtil from "../utils/httpUtil"

const valid404 = (callBack) => {
	let params = {
		url: window.location.href
	}
	httpUtil.post('/api/rf/checkDomain', params, res => {
		if (!res.data) {
			uni.redirectTo({
				url: '/pages/404/404'
			})
		}
		if (callBack) {
			callBack(res)
		}
	})
}

export default {
	valid404,
}